package com.yohann.designPattern.flyweight;

/**
 * <p>
 * 具体网站
 * </p>
 *
 * @author Yohann
 * @since 2021/2/8 14:26
 */
public class ConcreteWebsite extends Website {
    private String type = "";

    public ConcreteWebsite(String type) {
        this.type = type;
    }

    @Override
    void use(User user) {
        System.out.println(user.getName() + " use " + type + " website");
    }
}